package db

import (
	"errors"
)

type FakeUserDB struct {
}

func (db *FakeUserDB) Get(name string, password string) (*User, error) {
	if name == "user" && password == "123456" {
		return &User{Name: "user", Password: "123456"}, nil
	} else {
		return nil, errors.New("no such user")
	}
}